$(function () {
    // 获取关注列表
    var loading = weui.loading('loading', {
        className: 'custom-classname'
    });
    var result = Model.user.getMyFans();
    for (var i = 0; i < result.us.length; i++) {
        var item = ' <div class="weui-cell">' +
            '            <div class="shop-vendor-left" userid="' + result.us[i].userid + '">' +
            '                <div class="portrait-block">' +
            '                    <img class="portrait-img"' +
            '                         src="' + result.us[i].photo + '">' +
            '                </div>' +
            '            </div>' +
            '            <div class="weui-cell__bd">' +
            '                <h3 class="text-1-4 username">' + result.us[i].nickname + '</h3>' +
            '            </div>' +
            '        </div>'
        $(".margin-top-container").append(item);
    }
    loading.hide();
});



$(document).on("click", ".shop-vendor-left", function () {
    var id = $(this).attr("userid");
    location.href = "shop_detail.html?id=" + id;
});